﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame4
{
    class AIProjectile : AIObject
    {
        private Object projectile;

        public AIProjectile(String id, TypeAIObject type) : base(id, type)
        {
            stateMachine = new StateMachine(this);
            stateMachine.CurrentState = Projectile_MoveState.getInstance();
            this.projectile = GameInfo.getInstance().getObject(id);
        }

        public override void update()
        {
            if (stateMachine != null)
                stateMachine.update();
        }


        public Object Projectile
        {
            get { return projectile; }
            set { projectile = value; }
        }
    }
}
